'''
Created on Mar 21, 2013

@author: Jason
This class supports the different types of packets we would like to create.
We want to know the drop rate for each type of job.
'''
from SimPy.Simulation import now
from Globals import *

class Packet:
    TotalPackets = 0
    
    def __init__(self, priority, noDrop, size):
        self.noDropFlag = noDrop #no Drop
        self.priorityServiceFlag = priority # priority service
        self.packetSize = size #packet size in bytes
        self.dropped = False
        self.creationTime = now()
        self.serviceTime = 0 
        Packet.TotalPackets += 1